What is the meaning of the word "attractive nuisance"?

Definitions:

  1. anything on your premises that might attract children into danger or harm copy to clipboard noun
    • their swimming pool is an attractive nuisance copy to clipboard